<template>
	<view class="noticeDetail">
		<template>
			<view class="noticeTitle">{{info.noticeTitle}}</view>
			<view class="updateTime">{{info.updateTime}}</view>
			<view class="noticeContent">
				<u-parse :content="info.noticeContent"></u-parse>
			</view>
		</template>
	</view>
</template>

<script>
	import { strFormatMinutes } from '@/utils/format.js'
	export default {
		data() {
			return {
				info:{
					noticeTitle:'',
					noticeContent:'',
					updateTime:''
				},
			}
		},
		computed:{
		},
		onLoad(options) {
			let notice = JSON.parse(decodeURIComponent(options.notice))
			this.info.noticeId = notice.noticeId
			this.info.noticeTitle = notice.noticeTitle
			this.info.noticeContent = notice.noticeContent
			this.info.updateTime = strFormatMinutes(notice.updateTime)
		},
		onReady() {
			uni.setNavigationBarTitle({
				title: this.info.noticeTitle
			})
		},
	}
</script>

<style>
.noticeDetail {
	line-height: 1.6;
	color: #505050;
	font-size: 32rpx;
	padding: 0 30rpx;
	margin-top: 50rpx;
}
.noticeTitle {
	margin: 30rpx 0;
	font-size: 44rpx;
}
.updateTime {
	font-size: 26rpx;
	color: grey;
	margin-bottom: 30rpx;
}
.noticeContent {
	padding: 15rpx;
	font-size: 33rpx;
	overflow: hidden;
	word-break: break-all;
	/* text-indent:2em; */
}
</style>
